package com.learn.springbootcache.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Jmy
 * @date 2019/10/21 16:27
 * @email jiaomingyu5778@gmail.com
 */
@Configuration
public class MyAMQPConfig {

    /**
     * 指定rabbitMY 序列化
     * @return
     */
    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }
}
